package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.grid.entity.GridReportWeekDetail;
import com.easylinkin.linkappapi.grid.models.dto.GridReportWeekDetailSaveDTO;
import com.easylinkin.linkappapi.grid.models.vo.GridReportWeekDetailCollectVO;

import javax.validation.constraints.NotNull;

/**
 * 网格周 报填写详情 服务类
 *
 * @author kuyujie
 * @since 2024-05-22
 */
public interface IGridReportWeekDetailService extends IService<GridReportWeekDetail> {
    /**
     * 保存数据
     *
     * @param dto
     * @author kyj
     * @date 2024/5/21 10:32
     */
    void saveData(GridReportWeekDetailSaveDTO dto);

    /**
     * 获取周报汇总
     *
     * @param reportId
     * @return GridReportWeekDetailInfoVO
     * @author kyj
     * @date 2024/5/22 14:26
     */
    GridReportWeekDetailCollectVO getDetailCollect(@NotNull(message = "周报ID不能为空") Long reportId);
}